%%ets
-record(sql_data, {key, opType=add,rec={}}).%key={Tab,id} opType=change,add,del
-record(sql_config, {key, sql=""}).%key={Tab,Fun}
-record(sql_key_static, {key, max=0}).%key=Tab

%%db
-record(config, {key, value}).
-record(cache, {aid,data}).
-record(ply,{sid,name,aid = 0,room_id,log_id}).
-record(off_ply,{aid = 0,room_id}).
-record(room, {id,owner=0,psw = "",hid=0,create_time=0,room_status,group_id=0,req=""}). 

%%room
-record(room_qp,{status,game_times = 0,zhuang_index,pick_qps,jie_suan_list,fighting_record=[]}).
-record(room_last,{last_index,last_status,last_qp,last_time}).
-record(room_ply,{sid,name,aid = 0,ip,sex,head,room_index,qp_data,action_ans,action_data,score,prepare_state =0,pos=0}).
-record(room_ply_qp,{qp_outs,qp_fields,qps}).

-record(config_error_report,{name,id}).
